package com.xhtt.modules.cfg.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xhtt.common.utils.PageUtils;
import com.xhtt.common.utils.Query;
import com.xhtt.modules.cfg.dao.CfgWorkAreaMapper;
import com.xhtt.modules.cfg.entity.CfgWorkArea;
import com.xhtt.modules.cfg.service.CfgWorkAreaService;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 * 作业区域库 服务实现类
 * </p>
 *
 * @author feipc
 * @since 2019-02-19
 */
@Service
public class CfgWorkAreaServiceImpl extends ServiceImpl<CfgWorkAreaMapper, CfgWorkArea> implements CfgWorkAreaService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<CfgWorkArea> page = new Query<CfgWorkArea>(params).getPage();
        page.setRecords(baseMapper.queryPage(page, params));
        return new PageUtils(page);
    }
}
